<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
        <title><?php echo Mandrill::getApp()->title.' - '.__t('mandrill.forum.main.title', array(), 'ml-forum', 'modules'); ?></title>
        <?php echo $mlStylesheets; ?>
        <?php echo $mlScripts; ?>
    </head>
    
    <body>
        <div id="ml-container">
            <div class="ml-forum-header">
                <h1><a href="?r=ml-forum"><?php echo Mandrill::getApp()->title.' - '.__t('mandrill.forum.main.title', array(), 'ml-forum', 'modules'); ?></a></h1>
            </div>

            <br />

            <div id="panel">
                <span style="float: right"><strong>Date actuelle: </strong><?php echo date("d/m/Y"); ?></span>
                <?php
                // if( MSession::getInstance()->isLogged() ) {
                if ( MSession::getInstance()->getValue('username') != False ) {
                ?>
                    Bienvenue <?php echo MSession::getInstance()->getValue('username'); ?> ! ( <a href="<?php echo __route('ml-forum/users/logout'); ?>">Logout</a> )
                <?php
                } else {
                ?>
                    Bienvenue ! ( <a href="<?php echo __route('ml-forum/users/login'); ?>">Identification</a> | <a href="<?php echo __route('ml-forum/users/register'); ?>">Enregistrement</a> )
                <?php
                } ?>
            </div>
            
            <br />

            <div id="ml-content">
                <?php echo $mlContent; ?>
            </div>

            <div class="ml-blog-sidebar">

            </div>

            <div class="bottommenu">
                <span class="smalltext">
                    <a href="#">Link 1</a> |
                    <a href="#">Link 2</a> |
                    <a href="#">Link 3</a> |
                    <a href="#">Link 4</a> |
                    <a href="#">Link 5</a>
                </span>
                <span class="smalltext"><a href="#top" style="float: right;">To the top</a></span>
            </div>

            <div class="ml-forum-footer">
                <?php echo Mandrill::poweredBy(); ?>
            </div>
        </div>
    </body>
</html>